<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Project extends Model
{
    use SoftDeletes;

    protected $table = 'projekte';
    protected $primaryKey = 'ID';
    protected $guarded = ['ID'];
    protected $dates = ['delete_at'];


    public function users()
    {
        return $this->belongsToMany(User::class,'projekte_assigned','projekt','user');
    }
    public function phases()
    {
        return $this->hasMany(Phase::class);
    }
}
